package com.ckf.city.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * @author: serene
 * @date: 2020/9/19 16:31
 */

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("city")
public class City {

    /**
     *编号
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 父类Id
     */
    private Integer pId;

    /**
     * 城市名称
     */
    private String cityName;

    /**
     * 类型
     */
    private String cityType;

    public void setChildren(List<City> citys) {
    }
}
